package com.yunfeng.aolin.service;

import java.util.List;

import org.springframework.data.jpa.domain.Specification;

import com.yunfeng.aolin.entity.PurchaseGoods;
import com.yunfeng.common.util.Page;

public interface PurchaseGoodsService {
	PurchaseGoods get(Long id);

	void saveOrUpdate(PurchaseGoods purchaseGoods);

	void delete(Long id);

	List<PurchaseGoods> findAll();

	List<PurchaseGoods> findAll(Page page);

	List<PurchaseGoods> findByPinming(Page page, String pinming);

	List<PurchaseGoods> findByExample(
			Specification<PurchaseGoods> specification, Page page);
}
